Difference between Session.Abandon() and Clear()?
2297
18-Jun-2017
Sushant Mishra
18-Jun-2017Session.Abandon(): It destroys the current session by generating a Session_End event. It releases the SessionState object and its items to free the resources.
Session.Clear( ):It just clears the session data (gives a null value to the session) without Destroying it. Session.Clear still holds the SessionState and resources associated with it.
Session ID will remain the same in both of the cases till browser is not closed.